const fs = require('fs');
const writable = fs.createWriteStream('text.txt');
writable.write('hello, ');
writable.end('world!');
writable.on('finish', () => {
    console.log('All writes are now complete.');
});
